/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dotexe.webframework.core.eventargs;

/**
 *
 * @author jovan.tomasevic
 */

public enum ClientViewType {
        None ( 0),
        Form (1),
        Control (2),
        Button ( 3),
        CheckBox ( 4),
        ComboBox ( 5),
        Image ( 7),
        Link ( 8),
        GridView ( 9),
        Tab ( 10),
        TabPanel ( 11),
        TextBox ( 12),
        TreeView ( 14),
        RadioButton ( 15),
        RadioGroup ( 16),
        DateTime ( 17),
        FileBrowser ( 18),
        FileBrowserButton ( 19),
        Timer ( 20),
        Panel ( 21),
        CheckBoxGroup ( 22),
        Label ( 23),
        DesignItem ( 24);
    ClientViewType(int v){
        value = v;
    }
    public static ClientViewType getFromInt(int value){
        switch(value){
            case 1: return ClientViewType.Form;
            case 2: return ClientViewType.Control;
            case 3: return ClientViewType.Button;
            case 4: return ClientViewType.CheckBox;
            case 5: return ClientViewType.ComboBox;
            case 7: return ClientViewType.Image;
            case 8: return ClientViewType.Link;
            case 9: return ClientViewType.GridView;
            case 10: return ClientViewType.Tab;
            case 11: return ClientViewType.TabPanel;
            case 12: return ClientViewType.TextBox;
            case 14: return ClientViewType.TreeView;
            case 15: return ClientViewType.RadioButton;
            case 16: return ClientViewType.RadioGroup;
            case 17: return ClientViewType.DateTime;
            case 18: return ClientViewType.FileBrowser;
            case 19: return ClientViewType.FileBrowserButton;
            case 20: return ClientViewType.Timer;
            case 21: return ClientViewType.Panel;
            case 22: return ClientViewType.CheckBoxGroup;
            case 23: return ClientViewType.Label;
            case 24: return ClientViewType.DesignItem;
        }
        return ClientViewType.None;
    }
    private final int value;
}
